# coding:utf-8

from selenium import webdriver
import time
from bs4 import BeautifulSoup


def getHtml(url, waittime = 2):
    browser = webdriver.Chrome('/usr/local/lib/python3.7/site-packages/chromedriver')
    browser.get(url)
    time.sleep(waittime)
    html = browser.page_source
    browser.quit()
    soup = BeautifulSoup(html, features='html.parser')
    return soup

